package com.kyle.java.queue;

public class QueueTest {
    public static void main(String[] args) {

        ArrayQueue arrayQueue = new ArrayQueue();
        //入队0-9
        for(int i = 0 ; i < 10 ; i++){
            arrayQueue.add(i);
        }

        arrayQueue.showArray();

        //出队0-7
        System.out.println("出队0-7:");

        for(int i = 0 ; i < 7 ; i++){
            arrayQueue.pop();
        }

        //入队0-
        System.out.println("再入队 0-5:");
        for(int i = 0 ; i < 5; i++){
            arrayQueue.add(i);
        }
        arrayQueue.showArray();

        System.out.println("再入队 0-3:");
        for(int i = 0 ; i < 3; i++){
            arrayQueue.add(i);
        }
        arrayQueue.showArray();
    }
}
